package com.huadao.cart_ccs.main;

import com.daolion.base.anotation.BsActivityAnnotation;
import com.huadao.cart_ccs.R;
import com.huadao.cart_ccs.base.BaseActivity;
import com.huadao.cart_ccs.data.source.serialport.SerialPortSource;
import com.huadao.cart_ccs.main.login.LoginActivity;
import com.huadao.cart_ccs.utils.SerialPortSettingUtils;

import butterknife.OnClick;


@BsActivityAnnotation(layoutId = R.layout.activity_serialport_setting)
public class SerialPortSettingActivity extends BaseActivity {


    @OnClick(R.id.btn_ok)
    public void onClickOk() {
        if (SerialPortSettingUtils.isSettingValid(getContext(), true)) {
            SerialPortSource.instance();
            LoginActivity.launch(getApplicationContext(),LoginActivity.class);
            SerialPortSettingActivity.this.finish();
        }
    }
}
